import { defineStore } from 'pinia'

export const useAppStore = defineStore('app', {
  persist: true,
  state: () => ({
    isCollapsed: false,
    isShow: true
  }),
  getters: {},
  actions: {
    toggleMenu() {
      this.isCollapsed = !this.isCollapsed
      this.isShow = !this.isShow
    }
  }
})
